package com.bocai.freeman.view.activitys;

import android.os.Bundle;
import android.widget.ListView;

import com.bocai.freeman.R;
import com.bocai.freeman.base.BaseActivity;
import com.bocai.freeman.utils.ToolbarHelper;
import com.bocai.freeman.view.adapter.MyIntegralAdapter;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by admin on 2016/5/20.
 * 我的积分
 */
public class MyIntegralActivity extends BaseActivity {

    @Bind(R.id.lv)
    ListView mLv;

//    private View headView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_integral);
        ButterKnife.bind(this);
        initView();
        initEvent();
    }

    @Override
    protected void initView() {
        super.initView();
//        headView = LayoutInflater.from(this).inflate(R.layout.headview_my_integral,null);
    }

    @Override
    protected void initEvent() {
        super.initEvent();
        ToolbarHelper.setup(this, R.string.my_integral, R.mipmap.left_return);
//        mLv.addHeaderView(headView);
        mLv.setAdapter(new MyIntegralAdapter(this));
    }

    @Override
    public void setData(Object o) {
        super.setData(o);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ButterKnife.unbind(this);
    }
}
